package com.community.mapper;

import com.community.dto.MerchantDto;
import com.community.dto.MerchantOrders;
import com.community.pojo.Merchant;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author TangHaoSong Fly ChenJie HeYuHang
 * @since 2024-05-15
 */
public interface MerchantMapper extends BaseMapper<Merchant> {
    /**
     *
     * @param merchant
     * @return
     */
    List<Merchant> queryAll(Merchant merchant);
    /**
     * 更新商户信息
     * @param dto 商户信息DTO对象
     */
    void updateMerchant(MerchantDto dto);

    List<MerchantOrders> merchantByConsumerId(Integer id);
}
